//
//  PictureCCell.swift
//  mmda
//
//  Created by 李陆涛 on 2018/8/6.
//  Copyright © 2018年 mmda. All rights reserved.
//

import UIKit

class PictureCCell: UICollectionViewCell {

    @IBOutlet weak var imageView: UIImageView!
    
    @IBOutlet weak var closeView: UIView!
    @IBOutlet weak var bgView: UIView!
    
    @IBOutlet weak var videoTagImageView: UIImageView!
    
    var isCloseViewHidden:Bool = false {
        
        didSet {
            
            self.closeView.isHidden = isCloseViewHidden
        }
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
        
        bgView.backgroundColor = UIColor.black.withAlphaComponent(0.3)
        
        self.layer.borderWidth = 1.0
        self.layer.borderColor = UIColor.black.withAlphaComponent(0.1).cgColor
        
        self.closeView.isUserInteractionEnabled = true
        self.closeView.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(deleteAction)))
    }
    
    @objc func deleteAction () {
        
        print("--------------")
    }

}
